package cn.vehicle.service.remote;

import cn.vehicle.domains.dto.BaseResponse;
import cn.vehicle.domains.entity.CommonVehicleEntity;
import cn.vehicle.domains.entity.TransportVehicleEntity;
import cn.vehicle.domains.entity.VehicleCommonLedgerEntity;
import cn.vehicle.domains.entity.VehicleTransportLedgerEntity;
import cn.vehicle.enums.InOutTypeEnum;

import java.io.IOException;

public interface TjRemoteService {

    /**
     * 获取accessToken
     */
    String getAccessToken() throws IOException;


    /**
     * 上报车辆备案信息
     */
    BaseResponse putRegisterVehicleInfo(CommonVehicleEntity commonVehicleEntity, TransportVehicleEntity vehicleEntity) throws IOException;

    /**
     * 上报车辆通行记录
     */
    BaseResponse putVehiclePassRecords(VehicleTransportLedgerEntity vehicleTransportLedgerEntity, InOutTypeEnum passStatus, VehicleCommonLedgerEntity vehicleCommonLedgerEntity, CommonVehicleEntity commonVehicleEntity, TransportVehicleEntity transportVehicleEntity) throws IOException;
}
